package flex.cc.base.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@ApiModel(value = "登录人信息")
public class LoginAuthDto implements Serializable {
	private static final long serialVersionUID = -1137852221455042256L;
	@ApiModelProperty(value = "用户ID")
	private Long userId;

	@ApiModelProperty(value = "用户工号")
	private String userCode;

	@ApiModelProperty(value = "登录名")
	private String loginName;
	@ApiModelProperty(value = "用户名")
	private String userName;
	@ApiModelProperty(value = "组织ID")
	private Long groupId;
	@ApiModelProperty(value = "组织名称")
	private String groupName;

	@ApiModelProperty(value = "省级机构")
	private String comCode;
	@ApiModelProperty(value = "省级机构名称")
	private String comName;
	
	@ApiModelProperty(value = "归属机构")
	private String belongComCode;
	
	@ApiModelProperty(value = "归属机构名称")
	private String belongComName;


	public LoginAuthDto() {
	}

	public LoginAuthDto(Long userId, String userCode, String loginName, String userName) {
		this.userId = userId;
		this.userCode = userCode;
		this.loginName = loginName;
		this.userName = userName;
	}

	public LoginAuthDto(Long userId,String userCode, String loginName, String userName, Long groupId, String groupName,String belongComCode,String belongComName) {
		this.userId = userId;
		this.userCode = userCode;
		this.loginName = loginName;
		this.userName = userName;
		this.groupId = groupId;
		this.groupName = groupName;
		this.belongComCode = belongComCode;
		this.belongComName= belongComName;
	}
}
